
import Vue from 'vue';
import App from './App';
import VueRouter from 'vue-router';
import goods from './components/goods';
import contents from './components/contents';
import sellers from './components/sellers';
import VueResource from 'vue-resource';
import Element from 'element-ui';
import 'element-ui/lib/theme-default/index.css';

Vue.use(VueRouter);
Vue.use(VueResource);
Vue.use(Element);

const routes = [
{path: '/goods', component: goods},
{path: '/contents', component: contents},
{path: '/sellers', component: sellers}
];
const router = new VueRouter({
  routes: routes,
  linkActiveClass: 'active'
});
/* eslint-disable no-new */
new Vue({
  router: router,
  template: '<App/>',
  components: {App}
}).$mount('#app');

router.push('/goods');
